package com.luoyuanxiangvip.admin.core.shiro;

import org.apache.shiro.authc.AuthenticationToken;

/**
 * <p>
 * 自定义token
 * </p>
 *
 * @author luoyuanxiang <p>luoyuanxiangvip.com</p>
 * @since 2019/5/26 18:49
 */
public class AuthToken implements AuthenticationToken {

    private static final long serialVersionUID = 2424386775104576139L;
    /** 自定义 token */
    private String token;

    public AuthToken(String token) {
        this.token = token;
    }

    @Override
    public Object getPrincipal() {
        return token;
    }

    @Override
    public Object getCredentials() {
        return token;
    }
}
